import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    user: null,
    detail: null
  },
  mutations: {
    setUser (state, user) {
      state.user = user
    },
    setList (state, list) {
      state.detail = list
    }
  }
})

export default store
